#pragma once
#include <math.h>

namespace LatoolNet {
		
	using namespace System;

	///
	///<summary> This class calculates bessel functions.</summary>
	///
	public ref class Bessel {
	public:
		static double Y(int order, double x) {
			if (order == 0) {
				return _y0(x);
			} else if (order == 1) {
				return _y1(x);
			} else {
				return _yn(order, x);
			}
		};

		static double J(int order, double x) {
			if (order == 0) {
				return _j0(x);
			} else if (order == 1) {
				return _j1(x);
			} else {
				return _jn(order, x);
			}
		}
	};
}